package com.kk.jtq.springbootjt;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * the class of Plan1ThreadsAndJUC
 *
 * <p>
 * .
 *
 * @author little_lunatic
 * @date 2023-02-28
 */
@RestController
public class z {
    @Autowired
    ApplicationContext context;

    @GetMapping("/g")
    public void get() {
        System.out.println("==========/g=========");
        context.publishEvent(new DiyEvent(" 调用z.get"));
    }
}
